package com.example.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.FieldDefaults;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.bind.DefaultValue;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Photo {

    @TableId(value = "photo_id", type = IdType.AUTO)
    private Integer photoId;

    private String photoHash;

    private AuthLimits photoLimits = AuthLimits.PRIVATE;

    private String photoInfo;

    private  String classify;

    private Integer userId;

    private String url;

    private Integer width;

    private Integer height;

    private Integer size;


}
